﻿/* ==========================================================================
Ligat Ha'al - Professional Sports Dashboard
Theme: Dark Football Luxury (Based on CryptoVault Architecture)
==========================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&display=swap');
/* --- תיקון גלילה אופקית --- */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* --- הגדרות משתנים (CSS Variables) --- */
:root {
    --bg-primary: #0f1012; /* רקע כהה מאוד */
    --bg-secondary: rgba(20, 22, 26, 0.8); /* רקע זכוכית */
    --bg-card: rgba(30, 32, 38, 0.7); /* כרטיסים שקופים */
    --accent-green: #00ff41; /* ירוק ניאון ספורטיבי */
    --accent-gold: #d4af37; /* זהב יוקרתי */
    --text-primary: #ffffff; /* טקסט ראשי */
    --text-secondary: #a0a0a0; /* טקסט משני */
    --border: rgba(255, 255, 255, 0.08); /* גבול עדין */
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- הגדרות בסיס (Body) --- */
body {
    font-family: 'Assistant', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    background-image: url('../../images/background.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: var(--text-primary);
    line-height: 1.6;
    direction: rtl; /* מותאם לעברית */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

    /* שכבת Overlay למראה "בוגר" ואותנטי */
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.85) 100%);
        z-index: -1;
    }

/* פותר את בעיית המינוס בכל הטבלאות באתר */
table td {
    unicode-bidi: bidi-override;
    direction: ltr;
    text-align: center; /* שומר שהטקסט יישאר באמצע התא */
}

    /* מחזיר את הכיווניות לעברית עבור תאים שיש בהם שמות של קבוצות (טקסט) */
    table td:has(img),
    table td:nth-child(2) {
        direction: rtl;
        unicode-bidi: normal;
    }

.glowing-wave-header {
    font-family: 'Assistant', sans-serif;
    font-size: clamp(42px, 8vw, 80px);
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 12px;
    margin: 60px 0;
    background: linear-gradient( to bottom, #ffffff 0%, var(--accent-gold) 50%, #8a6d3b 100% );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.8));
    position: relative;
    animation: titleEntrance 1.5s ease-out;
}

    .glowing-wave-header::before {
        content: attr(data-text);
        position: absolute;
        inset: 0;
        background: linear-gradient( 45deg, transparent 45%, rgba(255, 255, 255, 0.6) 50%, transparent 55% );
        background-size: 200% 100%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: shine 4s infinite linear;
        z-index: 1;
    }

    .glowing-wave-header::after {
        content: "";
        display: block;
        width: 100px;
        height: 5px;
        background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
        margin: 20px auto;
        border-radius: 50px;
        box-shadow: 0 0 20px var(--accent-gold);
        transition: width 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .glowing-wave-header:hover::after {
        width: 400px;
    }

/* --- אנימציות --- */
@keyframes titleEntrance {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
        letter-spacing: 25px;
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        letter-spacing: 12px;
    }
}

@keyframes shine {
    0% {
        background-position: -100% 0;
    }

    100% {
        background-position: 100% 0;
    }
}

/* --- כרטיסי תוכן (Paragraph Cards) --- */
p {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    color: var(--text-primary);
    font-size: 18px;
    width: 90%;
    max-width: 700px;
    margin: 24px auto;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

    p:hover {
        transform: translateY(-5px);
        border-color: var(--accent-green);
        background: rgba(40, 42, 50, 0.8);
    }

/* --- טבלת ליגה (League Dashboard Table) --- */
table {
    width: 92%;
    max-width: 1100px;
    margin: 40px auto;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-secondary);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    flex: 1;
}

th {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--accent-gold);
    padding: 20px 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

td {
    padding: 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 15px;
    color: var(--text-primary);
    text-align: center;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

/* הדגשת הקבוצה המובילה */
tr:nth-child(2) td {
    color: var(--accent-green);
    font-weight: bold;
}

/* --- כפתורי ניווט (Nav Links) --- */
h2 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 40px 20px;
}

    h2 a {
        background: var(--bg-card);
        color: var(--text-primary);
        padding: 14px 28px;
        border-radius: 12px;
        text-decoration: none;
        font-weight: 600;
        font-size: 16px;
        border: 1px solid var(--border);
        transition: var(--transition);
        backdrop-filter: blur(10px);
    }

        h2 a:hover {
            background: var(--accent-green);
            color: #000;
            border-color: var(--accent-green);
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 255, 65, 0.3);
        }


/* --- פוטר דבוק לתחתית (Sticky Footer) --- */
footer, .footer {
    margin-top: auto;
    width: 100%;
}

/* רספונסיביות למובייל */
@media (max-width: 768px) {
    .glowing-wave-header {
        font-size: 32px;
        letter-spacing: 2px;
    }

        .glowing-wave-header::after {
            width: 140px;
        }

    table {
        width: 96%;
        font-size: 13px;
    }

    th, td {
        padding: 12px 8px;
    }

    h2 {
        flex-direction: column;
        align-items: center;
    }
}
